package com.gjy.concurrency.hc;

import org.junit.jupiter.api.Test;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-03-30 14:45:16
 */
public class HcCHashMap {

    private static final ConcurrentHashMap<Integer, Integer> MAP
            = new ConcurrentHashMap<>();

    @Test
    public void test1() {
        Integer i = MAP.getOrDefault(1, 10);
        System.out.println("i = " + i);
    }
}
